﻿@model IEnumerable<ThienVienDiDaTu.Models.AnPham>
@using ThienVienDiDaTu.Models 
           
@{
    ViewBag.Title = "Trang chủ Thiền Viện Di Đà Tự!";
    ViewBag.TrangChu = "active";
    ViewBag.GioiThieu = "";
    ViewBag.Thien = "";
    ViewBag.TinTuc = "";
    ViewBag.AnPham = "";
    var i = 0;
    TinTuc GioiThieuThien = ViewBag.GioiThieuThien;
    TinTuc HoatDong1 = ViewBag.HoatDongThien1;
    TinTuc HoatDong2 = ViewBag.HoatDongThien2;
    TinTuc HoatDong3 = ViewBag.HoatDongThien3;
 }

                <div class="art-content-layout">
                    <div class="art-content-layout-row">
                        <div class="art-layout-cell art-sidebar1">
                            @{Html.RenderAction("TinTucMoiNhat", "Home");}
                            @{Html.RenderAction("LienheNhaChua", "Home");}
                           
                           
                        </div>
                        <div class="art-layout-cell art-content">
                            <div class="art-post">
                                <div class="art-post-tl"></div>
                                <div class="art-post-tr"></div>
                                <div class="art-post-bl"></div>
                                <div class="art-post-br"></div>
                                <div class="art-post-tc"></div>
                                <div class="art-post-bc"></div>
                                <div class="art-post-cl"></div>
                                <div class="art-post-cr"></div>
                                <div class="art-post-cc"></div>
                                <div class="art-post-body">
                            <div class="art-post-inner">
                                            <h2 class="art-postheader">
                                                &nbsp;
                                                @GioiThieuThien.NhanDe
                                            </h2>
                                            <div class="art-postcontent">
                                                <!-- article-content -->
                                                
                                                
                                                <img src=@("/Content/data/images/"+GioiThieuThien.LinkAnh) width="200px" height="150px" alt="an image" class="image" style="float:left;border:0;margin: 0 1em 0 1em;" />
                                                <p>@GioiThieuThien.TomTat</p>
                                                <p>
                                                	<span class="art-button-wrapper">
                                                		<span class="l"> </span>
                                                		<span class="r"> </span>
                                                		<a class="art-button" href=@Url.Action("ChiTietGioiThieuVeThien", "Home", new { id = GioiThieuThien.ID})>Chi tiết</a>
                                                	</span>
                                                </p>
                                                <div class="cleared"></div>
                                                <div class="art-content-layout overview-table">
                                                	<div class="art-content-layout-row">
                                                		<div class="art-layout-cell">
                                                      <div class="overview-table-inner">
                                                		

                                                						  <img src=@("/Content/data/images/"+HoatDong1.LinkAnh) width="200px" height="150px" alt="an image" class="image" />
                                                						  <p><b><a href=@Url.Action("ChiTietHoatDongThien", "Home", new { id = HoatDong1.ID})>@HoatDong1.NhanDe </a></b></p>
                                                       </div>
                                                		</div><!-- end cell -->
                                                        <div class="art-layout-cell">
                                                      <div class="overview-table-inner">
                                                		

                                                						  <img src=@("/Content/data/images/"+HoatDong2.LinkAnh) width="200px" height="150px" alt="an image" class="image" />
                                                						  <p><b><a href=@Url.Action("ChiTietHoatDongThien", "Home", new { id = HoatDong2.ID})>@HoatDong2.NhanDe </a></b></p>
                                                       </div>
                                                		</div><!-- end cell -->
                                                        <div class="art-layout-cell">
                                                      <div class="overview-table-inner">
                                                		

                                                						  <img src=@("/Content/data/images/"+HoatDong3.LinkAnh) width="200px" height="150px" alt="an image" class="image" />
                                                						  <p><b><a href=@Url.Action("ChiTietHoatDongThien", "Home", new { id = HoatDong2.ID})>@HoatDong3.NhanDe </a></b></p>
                                                       </div>
                                                		</div><!-- end cell -->
                                                		
                                                	</div><!-- end row -->
                                                </div><!-- end table -->
                                                    
                                                <!-- /article-content -->
                                            </div>
                                            <div class="cleared"></div>
                            </div>
                            
                            		<div class="cleared"></div>
                                </div>
                            </div>
                            <div class="art-post">
                                <div class="art-post-tl"></div>
                                <div class="art-post-tr"></div>
                                <div class="art-post-bl"></div>
                                <div class="art-post-br"></div>
                                <div class="art-post-tc"></div>
                                <div class="art-post-bc"></div>
                                <div class="art-post-cl"></div>
                                <div class="art-post-cr"></div>
                                <div class="art-post-cc"></div>
                                <div class="art-post-body">
                            <div class="art-post-inner">
                                            <div class="art-blockheader">
                                                <div class="l"></div>
                                                <div class="r"></div>
                                                 <div class="t">Ấn phẩm mới</div>
                                            </div>

                                                @{
                                                foreach (var item in Model)
                                                {
                                                  
                                                         {
                                                              
                                                             <div class="overview-table-inner">
                                                               <a href=@Url.Action("ChiTietAnPham", "Home", new { id = @item.ID })><img src=@("/Content/data/images/" + item.LinkAnh) width="200px" height="150px" alt="an image" class="image" /></a>
                                                               <p class="center"><b><a href=@Url.Action("ChiTietAnPham", "Home", new { id = @item.ID }) >@item.TenAnPham </a></b></p>
                                                               </div>
                                                    
                                                           
                                                         } 
                                                     
                                                        
                                                     
                                                }
                                                }
                                            

                                         
                                            <div class="cleared"></div>
                            </div>
                            
                            		<div class="cleared"></div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
